import {SelectClassImage,UploadImage,DeleteImage} from "../../types/requestTypes"
import request from "../request";
import {ResponseRET} from "../../types/responseTypes"

/**
 * 查询班级群二维码列表
 * @param name
 */

export const getClassImageList = (params:SelectClassImage):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_CLASS_WX_LIST',params,true)

/**
 * 保存编辑并上传二维码图片
 * @param name
 */

export const setUploadImage = (params:UploadImage):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/ET_CLASS_WX',params,true)


/**
 * 删除图片
 * @param name
 */

export const reDeleteImage = (params:DeleteImage):Promise<{RET:string}>=> request.post( '/pic_server/delete',params,true)